<?php
require_once("TPL/Smarty.class.php");
$tpl = new Smarty();

session_start();
if (!isset($_SESSION['size_img']))
{
	$_SESSION['size_img'] = 40;
	$_SESSION['size_text'] = 6;
}
/*
** Permet de faire l'appel de la fonction zoom
*/
if (isset($_GET['zoom']))
	header('Location: zoom.php?zoom='.$_GET['zoom']);

/*var_dump($_SESSION);*/

if (isset($_SESSION['size_img']) && isset($_SESSION['size_text']))
{
	$tpl->assign("size_img", $_SESSION['size_img']);
	$tpl->assign("size_text", $_SESSION['size_text']);
}
$tpl->display("index.html");
?>